
import request from '../utils/request';
//获取首页展示信息
// const urlHeaderLive = "http://192.168.0.113:8088"
const urlHeaderLive = "https://sc.youniwote.com"
const getCategoryListUrl = urlHeaderLive + "/live/getCategoryList"

export function getUserCourse(values) {
  // console.log("getCourseIndexInfo------",values)
  return request(urlHeaderLive + `/live/getUserCourse?&unionid=${values.unionid}`,{
    method:'POST',
    // body:JSON.stringify(values)
  })
}
export function getChapterInfo(values) {
  // console.log("getChapterInfo------",values)
  return request(urlHeaderLive + `/live/getCourseContent?courseId=${values.courseId}&unionid=${values.unionid}`,{
    method:'POST',
    // body:JSON.stringify(values)
  })
}


export function getYcoin(values) {
  // console.log("getChapterInfo------",values)
  return request(urlHeaderLive + `/live/getYcoin?&unionid=${values.unionid}`,{
    method:'POST',
    // body:JSON.stringify(values)
  })
}
